package com.vcc.service.boss.response.rate;


import com.vcc.service.boss.response.baseVo.BossBaseVo;
import com.vcc.data.entity.Rate;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@Getter
@Setter
public class RateVoBoss extends BossBaseVo implements Serializable {
    private String name;

    private BigDecimal rate;

    private Integer initFlag;

    private String account;

    private String scene;

    private Long userId;

    private Long count;

    public RateVoBoss(){}

    public RateVoBoss(Rate rate, String account, Long count){
        super.setId(rate.getId());
        this.name = rate.getName();
        this.rate = rate.getRate();
        this.initFlag = getInitFlag();
        this.count = count;
        this.userId = rate.getOperationUserId();
        this.scene = rate.getScene();
        this.account = (account);
        setCreateDate(rate.getCreateDate());
    }
}
